import Cookies from 'js-cookie'
// token键
const TokenKey = 'AER_FA72'
// 时间键
const timeKey = 'AER_FA72-TIMESTAMP'


// 取token    
export function getToken() {
  return Cookies.get(TokenKey)
}
// 存token
export function setToken(token) {
  return Cookies.set(TokenKey, token)
}
// 删除token
export function removeToken() {
  return Cookies.remove(TokenKey)
}


// 无效请求优化
// 取时间戳    
export function getTimestamp() {
  return Cookies.get(timeKey)
}
// 存
export function setTimestamp() {
  return Cookies.set(timeKey, Date.now())
}
// 删除
export function removeTimestamp() {
  return Cookies.remove(timeKey)
}